package com.haiqi.common.persistence.dao;

import com.haiqi.common.persistence.entity.Dict;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DictMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Dict record);

    int insertSelective(Dict record);

    Dict selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Dict record);

    int updateByPrimaryKey(Dict record);

    List<Dict> findByType(@Param("type") String type);

    List<Dict> findDataList(@Param("dict") Dict dict);

    Dict findByTypeAndVal(String type,String val);
}